package com.kuanter.kuanterauto.activity.setting;

import android.os.Bundle;
import android.text.Html;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.kuanter.kuanterauto.R;
import com.kuanter.kuanterauto.baseui.BaseActivity_NoBar;

/** 
 * @author utopia
 * @version 2013-12-3 下午2:54:24
 * 
 */
public class AboutUsActivity extends BaseActivity_NoBar {
	TextView tv_2013;
	TextView tv_2012;
	TextView tv_2011;
	TextView tv_2008;
	
	LinearLayout time_line;
	LinearLayout timething;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.set_about_us);
		initUI();
	}
	
	private void initUI() {
		TextView title = (TextView)findViewById(R.id.top_middle);
		title.setText("关于我们");
		
		LinearLayout home_chose_City = (LinearLayout)findViewById(R.id.home_chose_City);
		home_chose_City.setVisibility(View.GONE);
		
		tv_2013 = (TextView) findViewById(R.id.tv_2013);
		tv_2012 = (TextView) findViewById(R.id.tv_2012);
		tv_2011 = (TextView) findViewById(R.id.tv_2011);
		tv_2008 = (TextView) findViewById(R.id.tv_2008);
		
		time_line = (LinearLayout) findViewById(R.id.time_line);
		timething = (LinearLayout) findViewById(R.id.timething);
		
		String str_2013 = "<font color=\"#282828\">用户数已逾</font><font color=\"#008cf0\"> 60 </font>万<br><br><font color=\"#282828\">全国性企业客户超过</font><font color=\"#008cf0\"> 25 </font><font color=\"#282828\">家</font>";
		tv_2013.setText(Html.fromHtml(str_2013));
		
		String str_2012 = "<font color=\"#282828\">累计发卡突破</font><font color=\"#008cf0\"> 280,000 </font><font color=\"#282828\">张</font>";
		tv_2012.setText(Html.fromHtml(str_2012));
		
		String str_2011 = "<font color=\"#282828\">累计发卡突破</font><font color=\"#008cf0\"> 120,000 </font><font color=\"#282828\">张</font>";
		tv_2011.setText(Html.fromHtml(str_2011));
		
		String str_2008 = "<font color=\"#282828\">宽途汽车</font><font color=\"#008cf0\">成立</font>";
		tv_2008.setText(Html.fromHtml(str_2008));
		
	}

	public void exit(View view) {
		finish();
	}

	@Override
	public void onWindowFocusChanged(boolean hasFocus) {
		if(hasFocus) {
			if(timething != null) {
				int height = timething.getMeasuredHeight();
				if(time_line != null) {
					time_line.getLayoutParams().height = height;
				}
			}
		}
		super.onWindowFocusChanged(hasFocus);
	}
	
	
	
}
